package cn.john.org.mapper;

import cn.john.basic.mapper.BaseMapper;
import cn.john.org.domain.Department;

import java.util.List;

/**
 * 写数据层的操作
 */
public interface DepartmentMapper extends BaseMapper<Department> {
    /* 1.基础的接口通过继承拿*/

    /* 2.扩展的接口额外写 */
    /**
     *查询一级和二级树
     * @return
     */
    List<Department> loadOneAndTwoLevelTree();
}
